package com.rul.mars.user.service;

import com.rul.mars.mbg.domain.RoleParam;
import com.rul.mars.mbg.model.Resource;
import com.rul.mars.mbg.model.Role;

import java.util.List;

/**
 * 角色服务
 *
 * @author RuL
 */
public interface RoleService {
    int create(RoleParam param);

    int update(Role role);

    int delete(List<Long> ids);

    List<Role> list();

    List<Role> list(Integer pageSize, Integer pageNum);

    List<Resource> listResource(Long roleId);

    int allocResource(Long roleId, List<Long> resourceIds);

    Role getRoleByName(String name);
}
